package cn.sinata.wanglin.adapter;

import com.baidu.mapapi.search.core.PoiInfo;
import com.xilada.xldutils.adapter.HFRecyclerAdapter;
import com.xilada.xldutils.adapter.util.ViewHolder;

import java.util.List;

import cn.sinata.wanglin.R;


public class AddressAdapter extends HFRecyclerAdapter<PoiInfo> {

    public AddressAdapter(List<PoiInfo> mData) {
        super(mData, R.layout.item_address_info);
    }

    @Override
    public void onBind(int position, PoiInfo data, ViewHolder holder) {
        holder.setText(R.id.tv_name,data.name);
        holder.setText(R.id.tv_addressdetail,data.address);
    }
}
